

<cfcomponent name="DynamicXmlBeanFactory" 
			displayname="DynamicXmlBeanFactory" 
			extends="coldspring.utils.DynamicXmlBeanFactory"
			output="false">
	
	<cffunction name="hasParent" access="public" returntype="boolean" output="false">
			
		<cfreturn isObject( variables.parent )/>
	</cffunction>
	
	<cffunction name="getNextParent" access="public" returntype="coldspring.utils.BeanFactory">
		<cfargument name="beanFactory" type="coldspring.utils.BeanFactory" required="true" />
		<cfset var parent = arguments.beanFactory />
		
		<cfif arguments.beanFactory.hasParent() >
		
			<cfset parent = arguments.beanFactory.getParent() />
			<cfset this.getNextParent( parent )/>
		
		</cfif>
		
		<cfreturn parent/>
	</cffunction>
    
				
</cfcomponent>